package op;

import java.util.Scanner;

public class Test1 {

	public static void main(String[] args) {

//		 int n=30; 
//		 int ok=n>20? 5 : 8; 
//		 System.out.println(ok);

//		 int age=14; 
//		 String ok1= age>=18?"欢迎来":"长大了再来"; 
//		 System.out.println(ok1);

		int age = 15;
		if (age >= 18) {
			System.out.println("上机堂欢迎你");
			System.out.println("送杯可乐");
		} else {
			System.out.println("长大再来");
		}

		int score = 35;

		if (score >= 90) {
			System.out.println("成绩A");
		} else if (score >= 70) {
			System.out.println("成绩B");
		} else if (score >= 60) {
			System.out.println("成绩C");
		} else {
			System.out.println("成绩D");
		}

		int fen1 = 100;
		int fen2 = 100;
		int fen3 = 90;

		if (fen1 == 100) {
			if (fen2 == 100) {
				if (fen3 == 100) {
					System.out.println("恭喜你中奖了");
				} else {
					System.out.println("你挂在第3关");
				}
			} else {
				System.out.println("你挂在第二关");
			}
		} // 根据 week 告诉我 ，一周的每一天我在干什么
		Scanner input = new Scanner(System.in);
		int week = 5;

		if (week == 1) {
			System.out.println("睡觉");
		} else if (week == 2) {
			System.out.println("看英语");
		} else if (week == 3) {
			System.out.println("看电影");
		} else if (week == 4) {
			System.out.println("看JAVA");
		} else if (week == 5) {
			System.out.println("看美女");
		} else if (week == 6) {
			System.out.println("LOL");
		} else if (week == 7) {
			System.out.println("买皮肤");
		} else {
			System.out.println("输入错误");
		}

		int week1 = input.nextInt(); // 自己输入
		switch (week1) {
		case 1:
		case 2:
		case 3:
		case 4:
		case 5:
			System.out.println("看美女");
			System.out.println("看电影");
			break;
		case 6:
			System.out.println("看LOL");
			break;
		case 7:
			System.out.println("皮肤");
			break;
		default:
			System.out.println("输入错误"); break; }
		
	}
}
